package edu.whu.service;

import edu.whu.bean.Supplier;
import edu.whu.exception.ProductException;

import java.util.List;

public interface SupplierService {
    int insert(Supplier su);
    int update(Supplier su);
    int delete(int id) throws ProductException;
    List<Supplier> selectAll();

    Supplier selectById(int id);

    List<Supplier> selectByName(String name);

    int deleteByProductId(int id) throws ProductException;
}
